<?php /* Smarty version Smarty-3.1.7, created on 2012-04-25 12:49:03
         compiled from "./templates/settings/siteSettings.tpl" */ ?>
<?php /*%%SmartyHeaderCode:11729779734f96c97bee7714-75789514%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '24176ffcae7c20ebb00e0d9f9fcc6e7b36dd4c1e' => 
    array (
      0 => './templates/settings/siteSettings.tpl',
      1 => 1335350912,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '11729779734f96c97bee7714-75789514',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.7',
  'unifunc' => 'content_4f96c97c0034b',
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_4f96c97c0034b')) {function content_4f96c97c0034b($_smarty_tpl) {?><?php echo $_smarty_tpl->getSubTemplate ("header.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array('script'=>'/lib/js/Settings.js'), 0);?>

<h1>Site settings</h1>
<p class="subHeadline">Configure your site</p>

<script>
	$(function() {
		$( ".tabs" ).tabs();
	});
	</script>

<div class="tabs">
	<ul>
		<li><a href="#tabs-1">General settings</a></li>
		<li><a href="#tabs-2">Sports and Divisions</a></li>
		<li><a href="#tabs-3">Teams</a></li>
		<li><a href="#tabs-4">Players</a></li>
	</ul>
	<div class="tabbedContent" id="tabs-1">
		<h2>General site settings</h2>
		
		<form class="standardForm" method="POST" action="/settings/updateGeneralSettings">
			<label for="siteName">Organization Name</label>
			<input type="text" id="siteName" name="siteName">
			
			<label for="siteDescription">Organization description</label>
			<textarea id="siteDescription"></textarea>
			
			<label for="facebookLink">Facebook link</label>
			<input type="text" id="facebookLink" name="facebookLink">
		
			<h2>E-mail settings (used for sending e-mails from the site)</h2><br />
		
			<label for="emailHost">E-mail server (smtp hostname):</label>
			<input type="text" id="emailHost" name="emailHost">
			
			<label for="emailUser">E-mail username</label>
			<input type="text" id="emailUser" name="emailUser">
			
			<label for="emailPassword">Email password</label>
			<input type="password" id="emailPassword" name="emailPassword">
			
			<label for="emailPort">E-mail server portnumber (e.g. 25, 587)</label>
			<input type="text" style="width:50px" id="emailPort" name="emailPort">
			
			<label for="emailFromAdress">E-mail sender adress (the e-mail adress for the smtp account, e.g. "emailrobot@teamplayers.dev")</label>
			<input type="text" id="emailFromAdress" name="emailFromAdress">
			
			<label for="emailFromName">E-mail sender name (e.g. "Team Players email service")</label>
			<input type="text" id="emailFromAdress" name="emailFromAdress">
			
			<input type="submit" value="Save settings">
			
		</form>
	</div>
	
		

	<div class="tabbedContent" id="tabs-2">
	<h2>Divisions</h2>
	<p>Division settings</div>
	
	<div class="tabbedContent" id="tabs-3">
	<h2>Teams</h2>
	<p>Team settings</p></div>
	
	<div class="tabbedContent" id="tabs-4">
	<h2>Players</h2>
	<p>Player settings</p></div>

</div>



<?php echo $_smarty_tpl->getSubTemplate ("footer.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>
<?php }} ?>